package cn.iocoder.yudao.module.erp.service.suppliersendorderitem;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.erp.controller.admin.suppliersendorderitem.vo.SupplierSendOrderItemPageReqVO;
import cn.iocoder.yudao.module.erp.controller.admin.suppliersendorderitem.vo.SupplierSendOrderItemSaveReqVO;
import cn.iocoder.yudao.module.erp.dal.dataobject.suppliersendorderitem.SupplierSendOrderItemDO;
import jakarta.validation.Valid;

import java.util.List;

/**
 * ERP 随货同行单项 Service 接口
 * @author ls
 */
public interface SupplierSendOrderItemService {

    /**
     * 创建ERP 随货同行单项
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createSupplierSendOrderItem(@Valid SupplierSendOrderItemSaveReqVO createReqVO);

    /**
     * 更新ERP 随货同行单项
     *
     * @param updateReqVO 更新信息
     */
    void updateSupplierSendOrderItem(@Valid SupplierSendOrderItemSaveReqVO updateReqVO);

    /**
     * 删除ERP 随货同行单项
     *
     * @param id 编号
     */
    void deleteSupplierSendOrderItem(Long id);

    /**
     * 获得ERP 随货同行单项
     *
     * @param id 编号
     * @return ERP 随货同行单项
     */
    SupplierSendOrderItemDO getSupplierSendOrderItem(Long id);

    /**
     * 获得ERP 随货同行单项分页
     *
     * @param pageReqVO 分页查询
     * @return ERP 随货同行单项分页
     */
    PageResult<SupplierSendOrderItemDO> getSupplierSendOrderItemPage(SupplierSendOrderItemPageReqVO pageReqVO);

    void updateSupplierSendOrderItems(@Valid List<SupplierSendOrderItemSaveReqVO> updateReqVOList);
}